<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title></title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <link rel="stylesheet" type="text/css" href="/static/shop/account/css/style.css"/>
    <link rel="stylesheet" type="text/css" href="/static/shop/account/css/swiper.min.css"/>
    <link rel="stylesheet" href="/static/shop/account/css/LCalendar.css">
</head>
<body>
<div class="login">
    <a href="{:url('/')}" title="首页">
        <img style = 'width: 9rem;
    margin-top: 1rem;'src="__MODULE_IMG__/logo.png">
    </a>
    <ul>
        {notempty name='user'}
        <!--<a href="/account/update/" title="" class="ucter">
            欢迎  {$user.mobile}
        </a>
        <span class="separate">|</span>-->
        <a href="{:url('shop/account/index')}" title="个人中心">个人中心</a>
        <span class="separate">|</span>
        <!--
                        <a href="{:url('shop/account/love')}" title="我的关注">我的关注</a>

                        <span class="separate">|</span>
                        <a href="{:url('shop/artwork/cart')}" title="购物车">购物车</a>
                        <span class="separate">|</span>-->
        <a href="{:url('shop/login/logout')}" title="退出">退出</a>
        {else/}

        <li><a href="{:url('shop/login/index')}" title="登录">登录</a></li>
        <li>|</li>
        <li><a href="{:url('shop/login/register')}" title="注册">注册</a></li>
        {/notempty}
    </ul>
</div>
<?php $account_select="我的订单" ;?>
{include file="public:nav"/}
{include file="public:menu"/}


<div class="inp">
    <p style="text-align: left; font-size: 25px;">我的订单</p>
    <br>
    <table border="1" style="width:100%;border:1px solid #ccc;">
        <tr>
            <th style="padding:5px;text-align: center;    font-weight: 300;">艺术品</th>
            <th style="padding:5px;text-align: center;    font-weight: 300;">价格</th>
            <th style="padding:5px;text-align: center;    font-weight: 300;">时间</th>
            <th style="padding:5px;text-align: center;    font-weight: 300;">状态</th>
        </tr>
        {volist name="orders" id="order"}
        <tr>
            <td style="padding:5px;">{$order['artwork_title']}</td>
            <td style="padding:5px;">{$order['price']}</td>
            <td style="padding:5px;">{$order['time']}</td>
            <td style="padding:5px;">已成交</td>
        </tr>
        {/volist}
    </table>
</div>
<div style="clear: both;"></div>
</div>
<style>
    th{
        border: none;
        font-weight: 600;}
    .inp{
        margin:0 auto;
        margin-top:25px;
        margin-bottom:25px;
        font-size: 28px;
    }
    .inp .line {

        height: 120px;
        margin:0 4%;
        border-radius: 20px;
        background: #d4d4d4;
        width: 34%;
        padding: 14px;
        text-align: center;
    }
    .inp .line span{
        display: block;
    }
    .ind-num{
        margin-top: 16px;
        margin-bottom: 14px;
    }
</style>
<div class="call">
    <a href="tel:4006667899" style="    color: #fff;"><img src="/static/shop/mobile/img/tel111.png" /></a>
    <a href="tel:4006667899" style="    color: #fff;"><p>收藏热线：400 666 7899</p></a>
</div>

<div class="footer">
    {include file="public:single"/}
</div>
<p class="icp">网站备案号：晋ICP备10002939号</p>
</body>
<script src="/static/shop/account/js/jquery-3.2.1-min.js"></script>
<script src="/static/shop/account/js/PhoneJs.js"></script>

</html>
<script src="/static/shop/account/js/LCalendar.js"></script>
<script>
</script>
<script>
    $(document).ready(function () {
        $("#submit").on("click", function () {
            $.ajax({
                url: "{:url('shop/account/ajaxUserinformation')}",
                type: "POST",
                dataType: "JSON",
                data: {
                    name: $("#name").val(),
                    birthday:$("#demo1").val(),
                    mobile:$("#mobile").val(),
                    address: $("#address").val(),
                    postcode:$("#postcode").val(),
                    income:$("#income").val(),
                    education:$("#education").val(),
                    school:$("#school").val(),
                    sex:$("input[name='sex']:checked").val()
                },
                success: function (data) {
                    alert(data.msg);
                    if (data.code == "0") {
                        window.location.href = "{:url('shop/account/index')}";
                    }

                }
            });
        });
    });
</script>